<?php

/**
 * Contains a class to define a Tag object to describe a product tag.
 *
 * PHP Version 5
 *
 * @category BuyLocal
 * @package  BuyLocal
 * @author   Kevin Fodness <kevin.fodness@gmail.com>
 * @author   Mike Pennisi <mpennisi@andrew.cmu.edu>
 * @author   Aaron Ryden <aryden@gmail.com>
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
 * @link     http://code.google.com/p/buylocalopensourcerensselaer/
 */
 
/**
 * A class to define a Tag object to describe a product tag.
 *
 * @category BuyLocal
 * @package  BuyLocal
 * @author   Kevin Fodness <kevin.fodness@gmail.com>
 * @author   Mike Pennisi <mpennisi@andrew.cmu.edu>
 * @author   Aaron Ryden <aryden@gmail.com>
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
 * @link     http://code.google.com/p/buylocalopensourcerensselaer/
 */ 
class Tag
{
    /**
     * The database unique ID for the tag.
     *
     * @access public
     * @var int       Corresponds to tags.tagid
     */
    public $id;
    
    /**
     * The name of the tag.
     *
     * @access public
     * @var string    Corresponds to tags.name
     */
    public $name;
    
    /**
     * Constructor function.  Populates variables based on parameters.
     *
     * @param int    $id   The tag ID.
     * @param string $name The tag name.
     *
     * @access public
     * @return null
     */
    public function __construct($id = null, $name = null)
    {
        $this->id   = $id;
        $this->name = $name;
    }
}

?>